package com.cdxy.enums.mq;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: tangy
 * @Date: 2020/6/10 12:52
 */
@AllArgsConstructor
@Getter
public enum RabbitQueueEnum {
    BUSINESS_QUEUE_A(RabbitQueueNameEnum.BUSINESS_QUEUE_A, RabbitRoutingKeyEnum.BUSINESS_QUEUE_A, "业务队列A"),
    BUSINESS_QUEUE_B(RabbitQueueNameEnum.BUSINESS_QUEUE_B, RabbitRoutingKeyEnum.BUSINESS_QUEUE_B, "业务队列B"),
    DEAD_LETTER_A(RabbitQueueNameEnum.DEAD_LETTER_QUEUE_A, RabbitRoutingKeyEnum.DEAD_LETTER_QUEUE_A, "死信队列A"),
    DEAD_LETTER_B(RabbitQueueNameEnum.DEAD_LETTER_QUEUE_B, RabbitRoutingKeyEnum.DEAD_LETTER_QUEUE_B, "死信队列B"),

    DELAY_BUSINESS_QUEUE_A(RabbitQueueNameEnum.DELAY_BUSINESS_QUEUE_A, RabbitRoutingKeyEnum.DELAY_BUSINESS_QUEUE_A, "延迟队列A"),
    DELAY_BUSINESS_QUEUE_B(RabbitQueueNameEnum.DELAY_BUSINESS_QUEUE_B, RabbitRoutingKeyEnum.DELAY_BUSINESS_QUEUE_B, "延迟队列B"),
    DELAY_DEAD_LETTER_A(RabbitQueueNameEnum.DELAY_DEAD_LETTER_QUEUE_A, RabbitRoutingKeyEnum.DELAY_DEAD_LETTER_QUEUE_A, "延迟队列死信A"),
    DELAY_DEAD_LETTER_B(RabbitQueueNameEnum.DELAY_DEAD_LETTER_QUEUE_B, RabbitRoutingKeyEnum.DELAY_DEAD_LETTER_QUEUE_B, "延迟队列死信B"),
    ;

    private String queueName;
    private RabbitRoutingKeyEnum rabbitRoutingKeyEnum;
    private String desc;
}
